package com.wzy.entity;

import com.baomidou.mybatisplus.annotation.IdType;

import java.util.ArrayList;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author wzy
 * @since 2021-02-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Comments对象", description = "")
public class Comments implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "comments_id", type = IdType.AUTO)
    private Long commentsId;

    private String img;

    private String email;

    private String nickname;

    private String content;

    private Date createTime;

    private Long parentCommentsId;

    private boolean adminComment;

    private Long blogId;
    private Blog blog;
    private Long heroId;
    private Hero hero;

//    回复评论
    private List<Comments> replyComments=new ArrayList<>();
    private String parentNickname;
    private Comments parentComment;



}
